package com.xz.log.jul.sample;

import java.util.logging.Logger;

/**
 * Created by fingal on 2018/7/19.
 */
public class JulSample {

    private static final Logger logger = Logger.getLogger(JulSample.class.getName());

    private JulSample(){}

    private static final JulSample INSTANCE = new JulSample();

    public static JulSample getInstance() {
        return INSTANCE;
    }

    public void log() {
        logger.finest("this is finest log...jul");

        logger.finer("this is finer log...jul");

        logger.fine("this is fine log...jul");

        logger.config("this is config log...jul");

        logger.info("this is info log...jul");

        logger.warning("this is warning log...jul");

        logger.severe("this is severe log...jul");
    }
}
